package com.camelot.ccr.system.persistence;
// default package

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.annotations.GenericGenerator;


/**
 * Picture entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="t_picture")

public class Picture  implements java.io.Serializable {


    // Fields    

     /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String id;
     private String title;
     private String description;
     private Date createTime;
     private String imgUrl;
     private String moudleType;
     private String businessId;


    // Constructors

    /** default constructor */
    public Picture() {
    }

    
    /** full constructor */
    public Picture(String title, String description, Date createTime, String imgUrl, String moudleType, String businessId) {
        this.title = title;
        this.description = description;
        this.createTime = createTime;
        this.imgUrl = imgUrl;
        this.moudleType = moudleType;
        this.businessId = businessId;
    }

   
    // Property accessors
    @GenericGenerator(name="generator", strategy="uuid.hex")@Id @GeneratedValue(generator="generator")
    
    @Column(name="id", unique=true, nullable=false, length=50)

    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Column(name="title", length=60)

    public String getTitle() {
        return this.title;
    }
    
    public void setTitle(String title) {
        this.title = title;
    }
    
    @Column(name="description", length=300)

    public String getDescription() {
        return this.description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
    @Temporal(TemporalType.DATE)
    @Column(name="create_time", length=10)

    public Date getCreateTime() {
        return this.createTime;
    }
    
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    
    @Column(name="img_url", length=1000)

    public String getImgUrl() {
        return this.imgUrl;
    }
    
    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }
    
    @Column(name="moudle_type", length=20)

    public String getMoudleType() {
        return this.moudleType;
    }
    
    public void setMoudleType(String moudleType) {
        this.moudleType = moudleType;
    }
    
    @Column(name="business_id", length=50)

    public String getBusinessId() {
        return this.businessId;
    }
    
    public void setBusinessId(String businessId) {
        this.businessId = businessId;
    }
   








}